//File: UCDeleteUser.java

package ucm;

import model.*;

/**
 * UCDeleteUser
 *
 * Primary Actor: User
 * Goal: Delete User account
 * Precondition: Connected to database. Account exists on database. User is logged on.
 * Postcondition: Account is deleted from database
 * 
 * @author Tobias Robinson
 */
public class UCDeleteUser {
    
    /**
     * 1. Actor selects Delete User.
     * 2. The system requests the actor to enter username and password.
     * 4. System verifies user input.
     * 5. System removes user from database.
     * 6. System notifies actor user has been deleted.
     */    
    public UCDeleteUser() { 
        run();
    }
    
    public void run() {
        User.loadDeleteUserView("user");
    }
}
